﻿ 
using Simulation.Framework;
using System.Collections;
using UnityEngine;

namespace Easy.Game2d
{
    public class StepMonsterManager : StepBase
    {

        #region override
        public override void Init()
        {

        }

        public override void Clear()
        {
        }




        public override void Start()
        {
            InitStep();

        }


        public override void Stop()
        {

        }
        #endregion

        #region data
        private Transform levelMonster;
        private PlayerController playerController;
        private MonsterController monsterController;
        #endregion

        #region logic

        private void InitStep()
        {
         

            Transform  levMonster = SingleBehavior<ResManagerByResources>.getInstance().Load<Transform>("Models/LevelMonster");
            levelMonster = UnityEngine.GameObject.Instantiate(levMonster);

            PlayerController player = SingleBehavior<ResManagerByResources>.getInstance().Load<PlayerController>("Models/Player");
            playerController = UnityEngine.GameObject.Instantiate(player);

            MonsterController Monster = SingleBehavior<ResManagerByResources>.getInstance().Load<MonsterController>("Models/MonsterController");
            monsterController = UnityEngine.GameObject.Instantiate(Monster);
            monsterController.InitMonster(playerController.transform);
        }
        #endregion
    }
}